Readme.txt
Luke 1st May 2023

This note explains the empirical and numerical files used to produce the results presented in 
the article "The welfare costs of job loss and decarbonization
- evidence from Germany’s coal phase out" by Luke Haywood, Markus Janser & Nicolas Koch

Access to the administrative data require prior authorisation 
by the Institute for Employment Research (IAB), Nuremberg, Germany.

### Stata files ###

Run 
	0master.do

	which calls
		1prepare.do
			which calls 
				ieb_wages_prepare.do
	and 
		5estimations.do
	and
		7biocoal.do.

### Matlab files ###

First, for a whole-sample estimation, run
	Bestim.m

or, for a cell-based estimation, run
	Bestimcell.m
	(including various options by changing the value of sample (line 79))

	where both Bestim.m and Bestimcell call
		Calgo.m
		Calgob.m
		Calgobm.m

Second, based on the results calculated, simulate counterfactual policies using
	Asimulage.m

Matlab files use standarderror.m and matrix2latex.m thus these are also included here.